'use strict';
var Model = require('../../../Base/server/controllers/Model');

var modelField = {
    Code: {
        type: String,
        Name: '编码',
        IsUnique: true,
        IsEmpty: false,
        trim: true
    },
    Name: {
        type: String,
        Name: '名称',
        IsEmpty: false,
        trim: true
    },
    ModuleUrl: {
        type: String,
        Name: '模块地址',
        IsEmpty: false,
        trim: true
    },
    FunctionName: {
        type: String,
        Name: '方法名称',
        IsEmpty: false,
        trim: true
    },
    Remark: {
        type: String,
        Name: '备注',
        default: '',
        trim: true
    }
};

var newModel = new Model(modelField);
newModel.addIndex({Name: 1});
newModel.addIndex({Code: 1});
newModel.create('Scheduler', '调度程序');
